package com.item.service;

import com.item.dao.EssenceAuthorMapper;
import com.item.dao.model.EssenceAuthor;
import com.item.dao.model.EssenceAuthorExample;
import com.item.daoEx.EssenceAuthorMapperEx;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EssenceAuthorService {
    @Autowired
    private EssenceAuthorMapper essenceAuthorMapper;
    
    @Autowired
    private EssenceAuthorMapperEx essenceAuthorMapperEx;

    private static final Logger logger = Logger.getLogger(EssenceAuthorService.class);

    public int countByExample(EssenceAuthorExample example) {
        return this.essenceAuthorMapper.countByExample(example);
    }

    public EssenceAuthor selectByPrimaryKey(String id) {
        return this.essenceAuthorMapper.selectByPrimaryKey(id);
    }

    public List<EssenceAuthor> selectByExample(EssenceAuthorExample example) {
        return this.essenceAuthorMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.essenceAuthorMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(EssenceAuthor record) {
        return this.essenceAuthorMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(EssenceAuthor record) {
        return this.essenceAuthorMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(EssenceAuthorExample example) {
        return this.essenceAuthorMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(EssenceAuthor record, EssenceAuthorExample example) {
        return this.essenceAuthorMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(EssenceAuthor record, EssenceAuthorExample example) {
        return this.essenceAuthorMapper.updateByExample(record, example);
    }

    public int insert(EssenceAuthor record) {
        return this.essenceAuthorMapper.insert(record);
    }

    public int insertSelective(EssenceAuthor record) {
        return this.essenceAuthorMapper.insertSelective(record);
    }
    
    public List<EssenceAuthor> selectMyCollectAuthors(Map<?,?> map){
    	return this.essenceAuthorMapperEx.selectMyCollectAuthors(map);
    }
}